package com.heima.feign;

import com.heima.pojo.Dept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Collection;

@FeignClient(value = "client")
public interface FeignProviderClient {
    @GetMapping("/dept/findAll")
    public Collection<Dept> findAll();

    @GetMapping("/dept/index")
    public String index();
}
